<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
      .page{
        width: 100%;
        height: 400px;
        background-color: antiquewhite;
      }
      .borderBox{
          box-sizing: border-box;
          background-color: blueviolet;
      }
      .contentBox{
          box-sizing: content-box;
          background-color: cornflowerblue;
      }
     .div1{
         width: 100px;
         height:100px;
     }
     .div2{
         width: 100px;
         height: 100px;
         padding: 10px;
         margin: 30px;
     }
    </style>
</head>
<body>
    <div class="page">
        <div class="borderBox div1">
            borderBox
        </div>
        <div class="contentBox div1">
            contentBox
        </div>
        <div class="borderBox div2">
            borderBox
        </div>
        <div class="contentBox div2">
            contentBox
        </div>
    </div>
</body>
</html>